package com.life.smile.entity.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class UserLoginLogVo {
	private String logId;//日志id
	private String userName;//用户名
	private String realName;//真实名字
	private String userRole;//角色名
	private String loginTime;//登录时间
	private String loginIp;//登录ip地址
	
	
	
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getLogId() {
		return logId;
	}
	public void setLogId(String logId) {
		this.logId = logId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserRole() {
		return userRole;
	}
	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}
	public String getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		this.loginTime = sdf.format(loginTime);
	}
	public String getLoginIp() {
		return loginIp;
	}
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	@Override
	public String toString() {
		return "UserLoginLogVo [logId=" + logId + ", userName=" + userName + ", realName=" + realName + ", userRole="
				+ userRole + ", loginTime=" + loginTime + ", loginIp=" + loginIp + "]";
	}
	
}
